import MinerMain from '@/page-compoennt/miner/main';
import useFetchGroupSwr from '@/hooks/swr/useFetchGroupSwr';
import { MonitorPageModel } from '@/types/monitor';

export default (props: { mid: number; monitorInfo: MonitorPageModel }) => {
  const { mid, monitorInfo } = props;
  const { data: groupModel } = useFetchGroupSwr(mid, 0);
  return (
    <MinerMain
      groupModel={groupModel}
      monitorInfo={monitorInfo}
      mid={props.mid}
      gid={0}
    />
  );
};
